home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ddj0897.zip
/
DYN401.ZIP
/
class
/
const.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-04-16
|
1KB
|
82 lines
/* Copyright (c) 1993-1996 Algorithms Corporation */
/* All rights reserved. */
/* This file automatically generated by dpp - do not edit */
#define DPP_STRATEGY 2
#define DPP_FASTWIDE 0
#define CLASS Constant_c
#define ivType Constant_iv_t
#include "generics.h"
object Constant_c;
#line 21 "const.d"
imeth objrtn Constant_im_gDispose(object self)
{
return self;
}
imeth objrtn Constant_im_gCopy(object self)
{
return self;
}
imeth int Constant_im_gEqual(object self, object obj)
{
return self == obj;
}
#line 45 "const.c"
objrtn Constant_initialize(void)
{
static CRITICALSECTION cs;
static int volatile once = 0;
ENTERCRITICALSECTION(_CI_CS_);
if (!once) {
INITIALIZECRITICALSECTION(cs);
once = 1;
}
LEAVECRITICALSECTION(_CI_CS_);
ENTERCRITICALSECTION(cs);
if (Constant_c) {
LEAVECRITICALSECTION(cs);
return Constant_c;
}
INHIBIT_THREADER;
Constant_c = gNewClass(Class, "Constant", 0, 0, END);
iMethodFor(Constant, gDispose, Constant_im_gDispose);
iMethodFor(Constant, gEqual, Constant_im_gEqual);
iMethodFor(Constant, gGCDispose, Constant_im_gDispose);
iMethodFor(Constant, gCopy, Constant_im_gCopy);
iMethodFor(Constant, gDeepDispose, Constant_im_gDispose);
iMethodFor(Constant, gDeepCopy, Constant_im_gCopy);
ENABLE_THREADER;
LEAVECRITICALSECTION(cs);
return Constant_c;
}